package study;

import java.util.Scanner;

public class Numberrate {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String essay="";
        essay = in.nextLine().toLowerCase();
        int denominator = essay.length();
        int numerator=0;
        String letter="abcdefghijklmnopqrstuvwxyz";

        for (char a : letter.toCharArray()){
            int pos = 0;
            String a1 = new Character(a).toString();
            while (( pos = essay.indexOf(a1, pos)) >= 0) {
                pos += a1.length();//pos++
                ++numerator;
            }
            double x = (double)numerator/denominator;
            System.out.println(a+"字母出现的频率："+x);
            numerator=0;
        }

        in.close();
    }
}
